﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace SerieSpotter.Models
{
    public class Show
    {
        [Key]
        public int Id { get; set; }
       [Required]
        public string Title{ get; set; }
       [Required]
        public int Year { get; set; }
        [Required]
        public string Description { get; set; }
       [Required]
        public string Country { get; set; }
       [Required]
        [Range(1,10)]
        public int Rating { get; set; }
        [Required]
        public string Genre { get; set; }
        public string PosterURL { get; set; }
        public Boolean Finished { get; set; } //serie gedaan of nog bezig?

        public virtual ICollection<Episode> Episodes { get; set; } //wordt gebruikt om ALLE episodes op te halen
        public virtual ICollection<Season> Seasons { get; set; } //wordt gebruikt om de episodes per seizoen op te halen
    }
}